import type { CommentDetail } from '@/types/api'

interface FetchCommentDetailAPIResData {
  code: number
  msg: string
  time: string
  data: CommentDetail
}

interface FetchCommentDetailAPIParams {
  id: string
}

export function fetchCommentDetailAPI(params: FetchCommentDetailAPIParams, token: string) {
  return httpInstance.get<FetchCommentDetailAPIResData, FetchCommentDetailAPIParams>(
    '/api/order/detailcomment',
    { params, headers: { token } },
  )
}
